﻿#include "saveinfo.h"

SaveInfo::SaveInfo()
{

}

SaveInfo::SaveInfo(QString save, QString user, QString hotel,QString hotelName,
                   QString star, QString location,QString hotelType, QString photo)
{
    m_save = save;
    m_user = user;
    m_hotel = hotel;
    m_hotelName = hotelName;
    m_star = star;
    m_location = location;
    m_hotelType = hotelType;
    m_photo = photo;
}

const QString &SaveInfo::getSave() const
{
    return  m_save;
}
const QString &SaveInfo::getUser() const
{
    return  m_user;
}
const QString& SaveInfo::getHotel() const
{
    return  m_hotel;
}
const QString &SaveInfo::getHotelName() const
{
    return  m_hotelName;
}
const QString &SaveInfo::getStar() const
{
    return  m_star;
}
const QString &SaveInfo::getLocation() const
{
    return  m_location;
}
const QString &SaveInfo::getHotelType() const
{
    return  m_hotelType;
}
const QString &SaveInfo::getPhoto() const
{
    return  m_photo;
}

void SaveInfo::setSave(const QString& save)
{
    m_save = save;
}
void SaveInfo::setUser(const QString& user)
{
    m_user = user;
}
void SaveInfo::setHotel(const QString& hotel)
{
    m_hotel = hotel;
}
void SaveInfo::setHotelName(const QString& hotelName)
{
    m_hotelName = hotelName;
}
void SaveInfo::setStar(const QString& star)
{
    m_star = star;
}
void SaveInfo::setLocation(const QString& location)
{
    m_location = location;
}
void SaveInfo::setHotelType(const QString& hotelType)
{
    m_hotelType = hotelType;
}
void SaveInfo::setPhoto(const QString& photo)
{
    m_photo = photo;
}
